package com.ktjy.ktmall.controller;


import com.ktjy.common.core.controller.BaseController;

import com.ktjy.common.core.page.TableDataInfo;

import com.ktjy.ktmall.domain.Car;

import com.ktjy.ktmall.service.ICarService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;




@RestController
@RequestMapping("/ktmall/car")
public class CarController extends BaseController
{
    @Autowired
    private ICarService carService;

/**
 * 查询汽车列表
 */
//@PreAuthorize("@ss.hasPermi('ktmall:car:list')")
@GetMapping("/list")
    public TableDataInfo list()
    {
        List<Car> list = carService.selectCarList();
        return getDataTable(list);
    }
}